﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using KerriganDataContract.Customer;
using KerriganDataContract.Authentification;
using KerriganDataContract.Session;
using KerriganDataContract.Code;
using KerriganDataContract.OfficialTest;
using KerriganDataContract;

namespace KerriganInterface.IServiceClient
{
    [ServiceContract]
    public interface IClientService
    {
        #region Customer

        [OperationContract]
        CustomerDC GetCustomer(int id);

        [OperationContract]
        CustomerDC CheckLoginCustomer(string nickName, string password);



        #endregion 

        #region Sessions

        [OperationContract]
        List<SessionBycustomerLight_Result> GetSessionsAvailableByCustomerID(int customerID);

        [OperationContract]
        List<SessionDC> GetSessionsByCustomerID(int customerID);


        [OperationContract]
        Boolean AddSessionToUser(int idSession, int customerID);

        #endregion

        #region Suivi

        [OperationContract]
        List<CodeDC> GetCodesByCustomerID(int customerID);

        [OperationContract]
        List<OfficialTestDC> GetExamsByCustomerID(int customerID);

        #endregion 
    }
}
